package com.twu.biblioteca;

import com.twu.biblioteca.models.Customer;
import com.twu.biblioteca.ui.WelcomeScreen;

import java.util.Random;

public class BibliotecaApp {

    public static void main(String[] args) {
        BibliotecaApp bibliotecaApp = new BibliotecaApp();
        bibliotecaApp.displayUI();
        Customer guest = bibliotecaApp.createGuest();
    }

    public void displayUI() {
        WelcomeScreen welcomeScreen = new WelcomeScreen();
        welcomeScreen.displayWelcomeScreenHeader();
        welcomeScreen.displayMenu();
    }

    public Customer createGuest() {
        Random random = new Random();
        int randomCode = random.nextInt(100);
        return new Customer("G"+randomCode, "Guest"+randomCode);
    }
}
